package com.example.backed.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtConfig {
    /**
     * JWT 密钥
     */
    private String secret = "your-secret-key";

    /**
     * Token 过期时间（默认24小时）
     */
    private Long expiration = 86400L;

    /**
     * Token 前缀
     */
    private String tokenPrefix = "Bearer ";

    /**
     * Token 请求头
     */
    private String header = "Authorization";
} 